package com.xjai.controller;

import com.xjai.service.ChatRecordService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ChatRecordServiceImpl
 * @Author robin
 * @Version 1.0
 * @Description MyDoctorController
 * @Date: 2025/4/30 10:49
 **/
@Slf4j
@RestController
@RequestMapping("mydoctor")
public class MyDoctorController {

    @Resource
    private ChatRecordService chatRecordService;

    @GetMapping("getRecords")
    public Object getDoctorRecords(@RequestParam String who){
        return chatRecordService.getChatRecordList(who);
    }

}
